/*
 * Copyright (c) 2017. Lorem ipsum dolor sit amet, consectetur adipiscing elit.
 * Morbi non lorem porttitor neque feugiat blandit. Ut vitae ipsum eget quam lacinia accumsan.
 * Etiam sed turpis ac ipsum condimentum fringilla. Maecenas magna.
 * Proin dapibus sapien vel ante. Aliquam erat volutpat. Pellentesque sagittis ligula eget metus.
 * Vestibulum commodo. Ut rhoncus gravida arcu.
 */

package com.isaiah.jackson;

import java.util.List;

/**
 * Created by haijun on 2017/7/2.
 */
public class UserBean {


    /**
     * age : 33
     * birthday : 1465185448998
     * hobbies : ["乒乓球","足球","篮球"]
     * id : 01
     * linked_info : [{"addr":"北京","qq_num":"282485068","tel_num":"15013182157"}]
     * name : 张三
     * one : E
     * pay : 6666.88
     * valid : true
     */

    private int age;
    private long birthday;
    private String id;
    private String name;
    private String one;
    private double pay;
    private boolean valid;
    private List<String> hobbies;
    private List<LinkedInfoBean> linked_info;

    public UserBean() {
    }

    public UserBean(int age, long birthday, String id, String name, String one, double pay, boolean valid, List<String> hobbies, List<LinkedInfoBean> linked_info) {
        this.age = age;
        this.birthday = birthday;
        this.id = id;
        this.name = name;
        this.one = one;
        this.pay = pay;
        this.valid = valid;
        this.hobbies = hobbies;
        this.linked_info = linked_info;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public long getBirthday() {
        return birthday;
    }

    public void setBirthday(long birthday) {
        this.birthday = birthday;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getOne() {
        return one;
    }

    public void setOne(String one) {
        this.one = one;
    }

    public double getPay() {
        return pay;
    }

    public void setPay(double pay) {
        this.pay = pay;
    }

    public boolean isValid() {
        return valid;
    }

    public void setValid(boolean valid) {
        this.valid = valid;
    }

    public List<String> getHobbies() {
        return hobbies;
    }

    public void setHobbies(List<String> hobbies) {
        this.hobbies = hobbies;
    }

    public List<LinkedInfoBean> getLinked_info() {
        return linked_info;
    }

    public void setLinked_info(List<LinkedInfoBean> linked_info) {
        this.linked_info = linked_info;
    }

    public static class LinkedInfoBean {
        /**
         * addr : 北京
         * qq_num : 282485068
         * tel_num : 15013182157
         */

        private String addr;
        private String qq_num;
        private String tel_num;

        public String getAddr() {
            return addr;
        }

        public void setAddr(String addr) {
            this.addr = addr;
        }

        public String getQq_num() {
            return qq_num;
        }

        public void setQq_num(String qq_num) {
            this.qq_num = qq_num;
        }

        public String getTel_num() {
            return tel_num;
        }

        public void setTel_num(String tel_num) {
            this.tel_num = tel_num;
        }
    }
}
